// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '入量管理',
        name: 'InRecord',
        url: "/InRecord/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PatientCode":"","ADIName":"","InValue":"","Unit":"","ADItDate":"","ADIPeople":""};
    const editFormOptions = [[{"title":"患者编号","required":true,"field":"PatientCode","type":"text"}],
                              [{"title":"入量名称","required":true,"field":"ADIName","type":"text"}],
                              [{"title":"数值","required":true,"field":"InValue","type":"text"}],
                              [{"title":"单位","required":true,"field":"Unit","type":"text"}],
                              [{"title":"录入时间","required":true,"field":"ADItDate","type":"datetime"}],
                              [{"title":"录入人","required":true,"field":"ADIPeople","type":"text"}]];
    const searchFormFields = {"ADIName":"","InValue":"","Unit":""};
    const searchFormOptions = [[{"title":"入量名称","field":"ADIName","type":"like"}],[{"title":"数值","field":"InValue","type":"="}],[{"title":"单位","field":"Unit","type":"="}]];
    const columns = [{field:'Id',title:'入量主键',type:'int',width:80,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PatientCode',title:'患者编号',type:'string',width:110,require:true,align:'left'},
                       {field:'ADIName',title:'入量名称',type:'string',width:110,require:true,align:'left'},
                       {field:'InValue',title:'数值',type:'int',width:80,require:true,align:'left'},
                       {field:'Unit',title:'单位',type:'string',width:110,require:true,align:'left'},
                       {field:'ADItDate',title:'录入时间',type:'datetime',width:150,require:true,align:'left'},
                       {field:'ADIPeople',title:'录入人',type:'string',width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}